<!DOCTYPE html>
<!-- thymeleaf支持 -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>区块链学院学生竞赛管理系统</title>
    <link rel="stylesheet" href="/res/css/pintuer.css">
    <link rel="stylesheet" href="/res/css/admin.css">
    <script src="/res/js/jquery.js"></script>
    <!--    <script src="/res/js/jquery-3.5.1.min.js"></script>-->
    <!--    <script>var jQuery_351 = $.noConflict(true);</script>-->
    <script src="/res/js/pintuer.js"></script>
</head>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
    <div class="logo margin-big-left fadein-top">
        <h1><img src="/res/images/y.jpg" class="radius-circle rotate-hover" height="50" alt="" />区块链学院学生竞赛管理系统</h1>
    </div>
    <div class="head-l" style="float: right">

        <a href="##" class="button button-little bg-blue">
            <span class="icon-wrench"></span> 清除缓存</a> &nbsp;&nbsp;
        <a class="button button-little bg-red" href="#">
            <span class="icon-power-off"></span> 退出登录</a>&nbsp;&nbsp;
    </div>
</div>
<div class="leftnav">
    <div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>
    <h2><span class="icon-user"></span>基本设置</h2>
    <ul style="display:block">
        <li><a th:href="@{/getStudentByStuNo(stuNo=${stu.stuNo})}" target="_self"><span class="icon-caret-right"></span>个人信息</a></li>
        <li><a href="/showNotices" target="_self"><span class="icon-caret-right"></span>系统消息</a></li>
        <li><a th:href="@{/getAllFavoriteByUserNo(stuNo=${stu.stuNo})}" target="_self"><span class="icon-caret-right"></span>收藏列表</a></li>
        <li><a href="/stugetAllCompetitionsByPages" target="_self">
            <span class="icon-caret-right"></span>竞赛信息</a>
        </li>
        <li><a th:href="@{/selectAllApplicationsByStuNo(stuNo=${stu.stuNo})}" target="_self"><span class="icon-caret-right"></span>报名记录</a></li>
        <li><a href="#" target="_self"><span class="icon-caret-right"></span>上传备赛进度</a></li>
        <li><a href="/toAchievement" target="_self"><span class="icon-caret-right"></span>上传竞赛成果</a></li>


    </ul>

</div>

<ul class="bread">
    <li><a href="/main.html" target="_self" class="icon-home"> 首页</a></li>
    <li><a href="##" id="a_leader_txt">系统通知</a></li>
    <li><b>当前语言：</b><span style="color:red;">中文</php></span>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;切换语言：<a href="##">中文</a> &nbsp;&nbsp;<a href="##">英文</a> </li>
</ul>

<div class="admin">
    <div class="panel admin-panel">
        <div class="panel-head"><strong><span class="icon-reorder"></span> 系统通知</strong></div>
        <div class="body-content">
            <!--            <form action="/getCompetitionsByConditions">-->
            <!--                &lt;!&ndash;                &nbsp;&nbsp;竞赛编号：<input type="text" name="comId" th:value="${comId}" class="input" style="width:150px; line-height:17px;display:inline-block"/>&ndash;&gt;-->
            <!--                &nbsp;&nbsp;-->
            <!--                &nbsp;&nbsp;竞赛名称：<input type="text" name="comName" th:value="${comName}" class="input comname" style="width:150px; line-height:17px;display:inline-block"/>-->
            <!--                &nbsp;&nbsp;-->
            <!--                责任教师：<input type="text" name="dutyTeacher" th:value="${dutyTeacher}" class="input dutytea" style="width:150px; line-height:17px;display:inline-block"/>-->
            <!--                &nbsp;&nbsp;-->
            <!--                <input type="submit" value="查询竞赛" class="button border-main icon-search queryCompetitions"/>-->
            <!--                &nbsp;&nbsp;-->

            <!--            </form>-->
            <table class="table table-hover text-center">

                <tbody>
                    <tr th:each="notice:${pageInfo.list}">
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td>▶</td>
                        <td th:text="${notice['noticeTittle']}"></td>
                        <td th:text="${#dates.format(notice['noticeTime'],'yyyy-MM-dd')}"></td>
                        <td><a th:href="@{/getNoticeById(id=${notice.id})}">详情>>></a></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>


<!--                <tr th:if="${pageInfo.total==0}">-->
<!--                    <td colspan="9" style="text-align: center">未查询到任何信息</td>-->
<!--                </tr>-->
                </tbody>
            </table>
        </div>
    </div>
<!--    <tr>-->
<!--        <td colspan="9">-->
<!--            <div th:if="${pageInfo.total>0}" class="pagelist">-->
<!--                &lt;!&ndash;                每页显示条数：&ndash;&gt;-->
<!--                &lt;!&ndash;                <select id="select-rowNum">&ndash;&gt;-->
<!--                &lt;!&ndash;                    <option value="2" th:selected="${2==pageInfo.pageSize}">2</option>&ndash;&gt;-->
<!--                &lt;!&ndash;                    <option value="4" th:selected="${4==pageInfo.pageSize}">4</option>&ndash;&gt;-->
<!--                &lt;!&ndash;                    <option value="8" th:selected="${8==pageInfo.pageSize}">8</option>&ndash;&gt;-->
<!--                &lt;!&ndash;                </select>&ndash;&gt;-->
<!--                &nbsp;&nbsp;-->
<!--&lt;!&ndash;                第<span th:text="${pageInfo.pageNum}"></span>页/共<span th:text="${pageInfo.pages}"></span>页&ndash;&gt;-->
<!--&lt;!&ndash;                &nbsp;&nbsp;&ndash;&gt;-->
<!--&lt;!&ndash;                第<span th:text="${pageInfo.startRow}"></span>行-第<span th:text="${pageInfo.endRow}"></span>行&ndash;&gt;-->
<!--&lt;!&ndash;                &nbsp;&nbsp;&ndash;&gt;-->
<!--&lt;!&ndash;                共<span th:text="${pageInfo.total}"></span>行&ndash;&gt;-->
<!--                &nbsp;&nbsp;-->
<!--                &lt;!&ndash;  /customer/selectCustomer 请求控制权的地址  &ndash;&gt;-->
<!--                <a th:href="@{/showNotices(currentPageNum=1}">首页</a>-->
<!--                &lt;!&ndash;  pageInfo.prePage 上一页   pageInfo.nextPage 下一页&ndash;&gt;-->
<!--                <span th:if="${pageInfo.hasPreviousPage}">-->
<!--                    <a th:href="@{/showNotices(currentPageNum=${pageInfo.prePage})}">上一页</a>-->
<!--                </span>-->
<!--                <span th:if="${pageInfo.hasNextPage}">-->
<!--                <a th:href="@{/showNotices(currentPageNum=${pageInfo.nextPage})}">下一页</a>-->
<!--                </span>-->
<!--                <a th:href="@{/showNotices(currentPageNum=${pageInfo.pages})}">末页</a>-->
<!--                &nbsp;&nbsp;-->
<!--                &lt;!&ndash;                跳转到：第 <input type="text" id="txt-pageNum" style="width: 30px;"/> 页&ndash;&gt;-->
<!--                &lt;!&ndash;                &nbsp;&nbsp;&ndash;&gt;-->
<!--                &lt;!&ndash;                <input type="button" id="btn-pageNum" value=" GO " style="background-color: #0ae;border: 0px;&ndash;&gt;-->
<!--                &lt;!&ndash;                color:white;border-radius: 3px;"/>&ndash;&gt;-->
<!--            </div>-->
<!--        </td>-->
<!--    </tr>-->
</div>

<!--<script>-->
<!--    var rel = document.getElementsByClassName("result");-->
<!--    var com = document.getElementsByClassName("comment");-->
<!--    console.log(rel);-->
<!--    for (var i=0;i < rel.length;i++){-->
<!--        rel[i].style.fontWeight = "bold";-->
<!--        // com[i].style.color = "red";-->
<!--        if (com[i].innerHTML != "无"){-->
<!--            com[i].style.color = "red";-->
<!--        }-->
<!--        if (rel[i].innerHTML =='审核通过'){-->
<!--            rel[i].style.color = "green";-->
<!--        }-->
<!--        if (rel[i].innerHTML == '审核中'){-->
<!--            rel[i].style.color = "orange";-->
<!--        }-->
<!--        if (rel[i].innerHTML == '审核未通过'){-->
<!--            rel[i].style.color = "red";-->
<!--        }-->
<!--    }-->

<!--</script>-->

</body>

</html>